package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface HazardDAO extends JpaDao<Hazard> {

	public Hazard findHazardById(Integer id) throws DataAccessException;

	public Hazard findHazardById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Hazard> findHazardByName(String name) throws DataAccessException;

	public Set<Hazard> findHazardByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Hazard> findHazardByNameContaining(String name_1) throws DataAccessException;

	public Set<Hazard> findHazardByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Hazard> findHazardByDescription(String description) throws DataAccessException;

	public Set<Hazard> findHazardByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Hazard> findHazardByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Hazard> findHazardByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Hazard findHazardByPrimaryKey(Integer id) throws DataAccessException;

	public Hazard findHazardByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Hazard> findHazardsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Hazard> findAllHazards() throws DataAccessException;

	public Set<Hazard> findAllHazards(int startResult, int maxRows) throws DataAccessException;

	public Set<Hazard> findHazardByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Hazard> findHazardsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Hazard findHazardByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Hazard findHazardByPhysicalPrimaryKey(String name, int startResult, int maxRows) throws DataAccessException;
}
